package cn.itsource.pethome.mapper;

import cn.itsource.pethome.domain.User;
import cn.itsource.pethome.query.UserQuery;

public interface UserMapper extends BaseMapper<User,UserQuery> {

    /**
     * 通过手机号查询User
     * @param phone
     * @return
     */
    User findByPhone(String phone);

    /**
     * 通过用户名/手机号/邮箱查询用户对象
     * @param username
     * @return
     */
    User findByAccount(String username);
}
